home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / eprop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.2 KB  |  53 lines

  1. // $Id: eprop.h 1.2 1997/07/14 04:26:42 dlorre Exp dlorre $
  2. #ifndef CLASS_EPROP_H
  3. #define CLASS_EPROP_H
  4.  
  5. #ifndef EXEC_TYPES_H
  6. #include <exec/types.h>
  7. #endif
  8.  
  9. #ifndef INTUITION_GADGETCLASS_H
  10. #define LORIENT_HORIZ   1
  11. #define LORIENT_VERT    2
  12. #endif
  13.  
  14. #ifndef CLASS_WINDOW_H
  15. class window ;
  16. #endif
  17.  
  18. #ifndef CLASS_GADGETLIST_H
  19. class gadgetlist ;
  20. #endif
  21.  
  22. #ifndef CLASS_GADGET_H
  23. #include "gadgets/gadget.h"
  24. #endif
  25.  
  26. const char  INSIDEPROP = 0 ;
  27. const char  RIGHTPROP = 1 ;
  28. const char  BOTTOMPROP = 2 ;
  29. const char  WIDTHPROP = 4 ;
  30. const char  HEIGHTPROP = 8 ;
  31.  
  32. // ========================================================================
  33. // =============================  EPROP CLASS =============================
  34. // ========================================================================
  35.  
  36. class eprop : public gadget
  37. {
  38. public:
  39.     eprop(gadgetlist *gl,
  40.         void    (window::*func)(gadget *, unsigned long, unsigned short),
  41.         long    top,
  42.         long    view,
  43.         long    total,
  44.         long    freedom=LORIENT_HORIZ,
  45.         char    style=INSIDEPROP) ;
  46.  
  47.     ~eprop() ;
  48.     void set(long top, long view, long total) ;
  49.     void action(unsigned long classe, unsigned short code) ;
  50. };
  51.  
  52. #endif
  53.